<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	import="com.wavecoler.professor.dao.UserDAO, com.wavecoler.professor.objects.User, java.util.List"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>List of Users</title>
</head>
<body>
	<% List<User> users = (List<User>) session.getAttribute("users");
   for(int i = 0; i < users.size(); i++){
	  int number = i+1;
	  User user = users.get(i); %>
	User #<%= number %>
	<br /> First name:
	<%= user.getFirstName()%>
	<br>Middle name:
	<%= user.getMiddleName()%>
	<br>Last name:
	<%=  user.getLastName()%>
	<br>Gender:
	<%=  user.getGender()%>
	<br>Birth date:
	<%=  user.getDateOfBirth() %>
	<br>Birth date:
	<%=  user.getBirthDay() + "/" + user.getBirthMonth() + "/" + user.getBirthYear() %>
	<br> Google Wave Account:
	<%= user.getUserName()%>
	<br>User type:
	<%=  user.getUserType()%>
	<br>Active:
	<%=  user.isActive()%>
	<br>On line:
	<%=  user.isOnline()%>
	<br />
	<br />
	<% }%>
</body>
</html>
